﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;

namespace MVC.OA.Common
{
   public class Log4NetWriter:ILogWriter
    {
        public void WriptLogInfo(string txt)
        {
            //调用Log4写入日志
            ILog logWrite = log4net.LogManager.GetLogger("Demo");
            logWrite.Error(txt);//写入错误级别日志信息
        }
    }
}
